const util = require('../../../../../utils/util.js');
const api = require('../../../../../config/api.js');
const user = require('../../../../../services/user.js');
const common = require('../../../../../utils/common.js');
const app = getApp();
Page({
  data: {
    //黑名单列表
    blacklistArr:[1111],
    //是否开启移出面板
    openDel: false,
  },
  onLoad: function(){
    var _this = this
    if (app.globalData.logininfo != null && app.globalData.logininfo != '') {
      _this.setData({
        logininfo: app.globalData.logininfo,
        openid: app.globalData.logininfo.openid,
      });
      console.log(_this.data.logininfo)
    }
  },
  //开启面板
  delblacklist: function(){
    var _this = this
    _this.setData({
      openDel: true
    })
  },
  //关闭面板
  closeMC: function(){
    var _this = this
    _this.setData({
      openDel: false
    })
  },
  //确认移出黑名单
  yesDel: function(){
    var _this = this
    _this.setData({
      openDel: false
    })
    wx.showToast({
      title: '移出成功',
      icon: 'success',
      duration: 2000
    })
  }
})